package com.broadengate.service.impl;

import com.broadengate.dao.CardDao;
import java.util.List;
import com.broadengate.model.*;
import com.broadengate.service.CardService;

public class CardServiceImpl implements CardService {
	private CardDao cardDao;

	public List<Card> login(String cardNO, String password) {
		System.out.println("card实现类");
		return cardDao.login(cardNO, password);
	}
	
	public Card findCardByCardNO(String cardNO){
		return cardDao.findCardByCardNO(cardNO);
	}

	public Atminfo findAtminfo(){
		return cardDao.findAtminfo();
	}
	
	public void addCard(Card card){
		cardDao.addCard(card);
	}
	
    public void updateCard(String cardNO){
    	cardDao.updateCard(cardNO);
	}

	public Customer findCustomerByCardNO(String cardNO){
		return cardDao.findCustomerByCardNO(cardNO);
	}
	
	public CardDao getCardDao() {
		return cardDao;
	}

	public void setCardDao(CardDao cardDao) {
		this.cardDao = cardDao;
	}
	
}
